how to create advance search with parameter in asp.net mvc

109

how to create advance search with parameter in asp.net mvc -

public ActionResult MemberSearch()
    {
        return View();
    }
    [HttpPost]
    public ActionResult MemberSearch(ViewModesTest m)
    {
        var d = db.Members.Where(s => s.Name == m.Name && m.LastName).ToList();
        return PartialView("SearchResutl", d);
    }

Comments

Submit
0 Comments